﻿using System.Runtime.Serialization;
using System.ServiceModel;
using ProductFileGlobalDefs;
namespace ProductFileWcfServices
{
    [ServiceContract]
    public interface ILoginHandler
    {
        [OperationContract]
        LoginResult Login(LoginData loginData);

    }

    [DataContract]
    public class LoginData
    {
        [DataMember]
        public string UserName { get; set; }

        [DataMember]
        public string Password { get; set; }
    }

    [DataContract]
    public class LoginResult
    {
        [DataMember]
        public bool RetCode { get; set; }

        [DataMember]
        public eUserType UserType { get; set; }


    }
}
